package com.baizhi.entity;

import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class User {
    private Integer id;
    private String telphone;
    private String password;
    private String image;
    private String nickName;
    private String name;
    private String sex;
    private String autograph;
    private String province;
    private String city;
    private Integer status;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date date;
    private Integer gid;
    private Guru guru;
    private Integer c;
    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", telphone='" + telphone + '\'' +
                ", password='" + password + '\'' +
                ", image='" + image + '\'' +
                ", nickName='" + nickName + '\'' +
                ", name='" + name + '\'' +
                ", sex='" + sex + '\'' +
                ", autograph='" + autograph + '\'' +
                ", province='" + province + '\'' +
                ", city='" + city + '\'' +
                ", status=" + status +
                ", date=" + date +
                ", gid=" + gid +
                ", guru=" + guru +
                ", c=" + c +
                '}';
    }

    public Integer getC() {
        return c;
    }

    public void setC(Integer c) {
        this.c = c;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getTelphone() {
        return telphone;
    }

    public void setTelphone(String telphone) {
        this.telphone = telphone;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getAutograph() {
        return autograph;
    }

    public void setAutograph(String autograph) {
        this.autograph = autograph;
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public Integer getGid() {
        return gid;
    }

    public void setGid(Integer gid) {
        this.gid = gid;
    }

    public Guru getGuru() {
        return guru;
    }

    public void setGuru(Guru guru) {
        this.guru = guru;
    }

    public User(Integer id, String telphone, String password, String image, String nickName, String name, String sex, String autograph, String province, String city, Integer status, Date date, Integer gid, Guru guru) {
        this.id = id;
        this.telphone = telphone;
        this.password = password;
        this.image = image;
        this.nickName = nickName;
        this.name = name;
        this.sex = sex;
        this.autograph = autograph;
        this.province = province;
        this.city = city;
        this.status = status;
        this.date = date;
        this.gid = gid;
        this.guru = guru;
    }

    public User() {
    }
}
